//
//  BaseController.m
//  mintHome
//
//  Created by 朱彦名 on 16/6/20.
//  Copyright © 2016年 朱彦名. All rights reserved.
//

#import "BaseController.h"
#import "AccountManager.h"
@interface BaseController ()

@end

@implementation BaseController

- (void)dealloc{
    [[NSNotificationCenter defaultCenter]removeObserver:self];
    
    [super dealloc];
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    // Do any additional setup after loading the view.
    
    if ([[AccountManager sharedInstance] isNight]) {
        [self setNightDay];
        
    }else{
    
        [self setLightDay];
        
    
    }
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(setLightDay) name:@"day" object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(setNightDay) name:@"night" object:nil];
    
    
}
- (void)setLightDay {
    NSLog(@"设置白天模式成功");
}

- (void)setNightDay {
    NSLog(@"设置夜晚模式成功");
}



@end
